﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace WITM.DAL
{
    public interface ISpendingCategoryRepository
    {
        IEnumerable<SpendingCategories> GetAll();
        IEnumerable<SpendingCategories> Find(Expression<Func<SpendingCategories, bool>> where);
        SpendingCategories First(Expression<Func<SpendingCategories, bool>> where);

        void Add(SpendingCategories category);
        void Delete(SpendingCategories category);
        void Attach(SpendingCategories category);
    }
}
